GtkStyleContext: Avoid over-eager animation cancellation
authorMatthias Clasen <mclasen@redhat.com>
Sun, 29 Jun 2014 23:33:46 +0000 (19:33 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 29 Jun 2014 23:41:11 +0000 (19:41 -0400)
commit9f008e347788da4799c5c12729a94c25cb6f07fb
treef4210bb6c349f2da7791aa6485e095cee25b57e8
parent3d53e5d9c7859d2d2df5dc4b68513864b80716c2
GtkStyleContext: Avoid over-eager animation cancellation

When validating the style context, we are copying the animations
from one StyleValues instance to another, and cancel the old ones.
It turns out that sometimes the old and the new StyleValues are
the same, and in this case, we end up cancelling the animations
for good.

One case where breakage from this was observed is that the spinners
in gtk3-widget-factory stop spinning when you open and close a modal
dialog on page 2. This depends a bit on the window manager; the problem
can only be seen if opening the dialog causes a transition to backdrop.
gtk/gtkstylecontext.c